package vn.axonactive.devday.jsf.model;

import java.util.Calendar;

public class StockQuoteHistory {

	private Calendar calendar;
	private double price;
	private int volume;
	
	public StockQuoteHistory() {
		
	}
	
	public StockQuoteHistory(Calendar c, double p, int v) {
		calendar = c;
		price = p;
		volume =v;
	}
	
	public StockQuoteHistory(StockQuote sq) {
		calendar = Calendar.getInstance();  
		price = sq.getCurrentPrice();
		volume = sq.getVolume();
	}
	
	public Calendar getCalendar() {
		return calendar;
	}

	public void setCalendar(Calendar calendar) {
		this.calendar = calendar;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getVolume() {
		return volume;
	}

	public void setVolume(int volume) {
		this.volume = volume;
	}

}
